package com.example.fruitdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.fruitdemo.pojo.Good;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GoodMapper extends BaseMapper<Good> {

    @Select("select * from tb_good where goryid=#{goryid} ;")
    List<Good> records(Integer goryid);

    List<Good> newgoods();
}
